package com.ocom.common.entity.payconfig;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * dishes_foodstuff
 * @author 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "dishes_foodstuff")
public class EntityDishesFoodstuff implements Serializable {

    private static final long serialVersionUID = -453377957439955819L;
    /**
     * 菜品编号，主键自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 单位编号
     */
    private Long comId;
    private Integer merchId;


    private Integer dishesId;
    private Integer foodstuffId;
    private Integer priceMode;
    private Integer weight;


    /**
     * 生成时间，计划日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date createTime;

    /**
     * 创建人p_id
     */
    private Integer createUser;

    /**
     * 更新时间，最后使用日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date updateTime;

    /**
     * 更新人p_id
     */
    private Integer updateUser;

    /**
     * CREATE TABLE `dishes_foodstuff` (
     *   `id` int(11) NOT NULL AUTO_INCREMENT,
     *   `com_id` int(11) DEFAULT '0' COMMENT '单位编号',
     *   `dishes_id` int(11) DEFAULT '0' COMMENT '菜品编号',
     *   `foodstuff_id` int(11) DEFAULT '0' COMMENT '食材编号',
     *   `price_mode` int(11) DEFAULT '20' COMMENT '11：按重量（50g）；20：例；21：小；22：中；23：大；',
     *   `weight` int(11) DEFAULT '0' COMMENT '重量。单位：克',
     *   `create_time` datetime DEFAULT NULL COMMENT '生成时间',
     *   `create_user` varchar(50) DEFAULT '' COMMENT '创建人',
     *   `update_time` datetime DEFAULT NULL COMMENT '更新时间',
     *   `update_user` varchar(50) DEFAULT '' COMMENT '更新人',
     *   PRIMARY KEY (`id`)
     * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='菜品成分表';
     */


    @TableField(exist = false)
    String foodstuffName;

    @TableField(exist = false)
    String foodClassName;
}